package com.cskaoyan.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @USER: cuiweiguo#
 * @DATE: 2022/5/8
 * @TIME: 10:46
 * @PROJECT_NAME: mallproject2
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class WxOrderListVO {
    private String orderStatusText;
    private Integer aftersaleStatus;
    private Boolean isGroupin;
    private String orderSn;
    private Double actualPrice;
    private List<GoodsList> goodsList;
    private Integer id;
    private HandleOption handleOption;
}

@Data
@NoArgsConstructor
@AllArgsConstructor
class GoodsList {
    private Integer number;
    private String picUrl;
    private Double price;
    private Integer id;
    private String goodsName;
    private String[] specifications;//TODO:可能有问题

    public void setPicUrl(String picUrl) {
        this.picUrl = "http://localhost:8083/"+picUrl;//TODO:后期改进
    }
}

@Data
@AllArgsConstructor
@NoArgsConstructor
class HandleOption {
    private boolean cancel;
    private boolean delete;
    private boolean pay;
    private boolean comment;
    private boolean confirm;
    private boolean refund;
    private boolean rebuy =false;
    private boolean aftersale;
}
